home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Archive / Graphics / QuickDraw GX / IW-Half-Dither / source / NewDriverProtos.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  3.5 KB  |  94 lines  |  [TEXT/MPS ]

  1. /*
  2.     copyright © 1992-1996 Apple Computer Inc.  All rights reserved.
  3.     
  4.     NewDriverProtos.h
  5.     
  6.     This file implements old application message overrides for the specific driver.
  7.     
  8.     Included in this file is the old PrintRecord emulation.  Note that the ImageWriter
  9.     PrintRecord is a wonder of misdirection and special cases.  You'll have fun
  10.     figuring out the code - so unless you really want to exactly emulate the ImageWriter
  11.     pages, you shouldn't spend too much time looking at this code.
  12.     
  13.     Modification history
  14.     7/23/92            TED                New file today
  15.     12/20/93        dmh                Sync'd with the shipping 1.0b3 GX driver.
  16.      8/26/94        dmh                Sync'd with the shipping 1.0.1 GX driver.
  17.     28/03/96        JHH                
  18.     05/21/96        Jason H-H        Updated for ETO#19/MW.
  19.     05/21/96        Don Swatman        Modifications for halftoning, dithering and plane seperations.
  20. */
  21.  
  22. #ifndef __NUDRVRPROTOSHEADER__
  23. #define __NUDRVRPROTOSHEADER__
  24.  
  25. /****    Macintosh Toolbox Headers    ****/
  26.  
  27. #ifndef __GXPRINTERDRIVERS__
  28. #include <GXPrinterDrivers.h>
  29. #endif
  30.  
  31.  
  32. /****    NewApp.c prototypes        ****/
  33.  
  34. void DoDebug(Str255 theStr);
  35. void Long2Dec(long aLong, Ptr emitHere);
  36. Boolean PrinterHasColorRibbon(gxPrinter thePrinter);
  37. gxViewDevice    NewDeviceResolutionViewDevice(void);
  38. Boolean    JobIsBest(long *imagewriterOptions);
  39. OSErr    DoTheQuery(unsigned short * statusReturn, Boolean papStatus);
  40. OSErr FetchStatusString(unsigned short * statusReturn, Boolean papStatus, Boolean doRetry);
  41. OSErr UpdateConfiguration(void);
  42. OSErr WriteDraftChars(long **draftTable, unsigned char *draftChar, long numChars);
  43. OSErr GetPointerThisBig(Ptr *theBuff, long numBytes);
  44. OSErr GetTextAndPosition(    gxShape            theShape, 
  45.                             Ptr                *theChars, 
  46.                             long            *numChars, 
  47.                             gxPoint            *textPosition);
  48. OSErr PrintPageInDraftMode(gxShape thePage, gxRasterImageDataHdl imageData);
  49. OSErr SD_Initialize (void); 
  50. OSErr SD_ShutDown(void);
  51. OSErr    SD_DefaultPrinter(gxPrinter thePrinter);
  52. OSErr SD_DefaultFormat(gxFormat theFormat);
  53. OSErr SD_DefaultJob(void);
  54. OSErr SD_OpenConnection(void);
  55. OSErr SD_CloseConnection(void);
  56. OSErr SD_JobIdle(void);
  57. OSErr SD_FreeBuffer(gxPrintingBuffer * theBuffer);
  58. OSErr SD_DumpBuffer(gxPrintingBuffer * theBuffer);
  59. OSErr SD_StartSendPage(gxFormat pageFormat);
  60. OSErr SD_FinishSendPage(void);
  61. OSErr SD_JobFormatDialog(gxDialogResult*    theResult);
  62. OSErr SD_JobFormatModeQuery(    gxQueryType        theQuery,
  63.                                 void*            srcData,
  64.                                 void*            dstData);
  65. OSErr SD_SetupImageData(gxRasterImageDataHdl hImageData);
  66. OSErr SD_FetchDriverData(
  67.     ResType            theType,
  68.     short            theID,
  69.     Handle*            theData);
  70. OSErr SD_RenderPage(    gxFormat                theFormat,
  71.                         gxShape                    thePage,
  72.                         gxPageInfoRecord        *pageInfo,
  73.                         gxRasterImageDataHdl    imageInfo);
  74. OSErr SD_LineFeed (
  75.     long *lineFeedSize,
  76.     Ptr buffer, unsigned long    * bufferPos,
  77.     gxRasterImageDataHdl hImageData);
  78. OSErr SD_PackageBitmap (gxRasterPackageBitmapRec    *pPackage,
  79.                         Ptr                         buffer,
  80.                         unsigned long                 *bufferPos,
  81.                         gxRasterImageDataHdl         hImageData);
  82. Boolean PrintThisBand ( short printerBand );
  83. OSErr SetUpPrintPanel( void );
  84. OSErr SD_JobPrintDialog(gxDialogResult *dlogResult );
  85. void SetDialogControl( DialogPtr pDlg, short theItem, Boolean theState );
  86. Boolean GetDialogControl( DialogPtr pDlg, short theItem );
  87. void SetDialogCtrlGray ( DialogPtr pDlg, short theItem, Boolean isGray);
  88. void GrayDitherDialog ( DialogPtr pDlg, short itemCount, Boolean isDither);
  89. OSErr OpenDitherPanel(DialogPtr pDlg, short itemCount);
  90. OSErr SD_HandlePanelEvent( gxPanelInfoRecord *panelInfo );
  91. pascal void DrawBoundBox( WindowPtr theWindow, short theItem );
  92.  
  93.  
  94. #endif //__NUDRVRPROTOSHEADER__